import Api from './Api';

class ProjectApi extends Api<ProjectApi> {
  get prefix() {
    return '/iam/choerodon/v1/projects';
  }

  getProjectInfo() {
    return this.request({
      method: 'get',
      url: `/cbase/choerodon/v1/projects/bus/${this.projectId}`,
    });
  }
}

const projectApi = new ProjectApi();
const projectApiConfig = new ProjectApi(true);
export { projectApi, projectApiConfig };
